package com.it.myh;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: Od_0221_03    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2023/2/21 15:16   // 时间
 * @Version: 1.0     // 版本
 */
public class Od_0221_03 {

    public static void main(String[] args) {
        try {
            InetAddress localhost = InetAddress.getByName("localhost");
            System.out.println(localhost);
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
    }
}
